home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / TextEdit / TextEditCutter.h < prev    next >
Text File  |  2000-06-23  |  623b  |  31 lines

  1. // TextEditCutter.h
  2.  
  3. #ifndef TextEditCutter_h
  4. #define TextEditCutter_h
  5.  
  6. #ifndef Cutter_h
  7. #include "Cutter.h"
  8. #endif
  9. #ifndef TextEditClipboard_h
  10. #include "TextEditClipboard.h"
  11. #endif
  12.  
  13. #include <TextEdit.h>
  14. #include <Dialogs.h>
  15.  
  16. class TextEditCutter: public Cutter
  17.   {
  18.     public:
  19.         TextEditCutter()
  20.             : Cutter( TextEditClipboard::The() )
  21.             {}
  22.  
  23.         void Cut( TEHandle te )                { TECut( te ); Approve(); }
  24.         void Copy( TEHandle te )            { TECopy( te ); Approve(); }
  25.  
  26.         void Cut( DialogRecord& d )        { DialogCut( &d.window.port ); Approve(); }
  27.         void Copy( DialogRecord& d )        { DialogCopy( &d.window.port ); Approve(); }
  28.   };
  29.  
  30. #endif
  31.